const path = require('path');
const WebpackPluginA = require('./build/plugins/webpackPluginA');
const WebpackPluginB = require('./build/plugins/webpackPluginB');


module.exports = {
  entry:'./src/main.js',
  mode:'development',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'my-first-webpack.bundle.js',
  },
  plugins:[
    new WebpackPluginA(),
    new WebpackPluginB()
  ],
  module:{
    rules:[
      {
        test:/\.js$/,
        use:[
          {
            loader:path.resolve(__dirname, 'build/loader/loaderA.js'),
          },
          {
            loader:path.resolve(__dirname, 'build/loader/loaderB.js'),
          }
        ],
      }
    ]
  }
}